/**
 * 
 */
package org.dse.dao;

import org.dse.beans.HtmlDocument;

/**
 * The interface provides additional methods in html document access.
 * 
 * As HtmlDocumentDAO, the system may want to find a document using its url.
 * And, the system may want to get the max length of all documents.
 * 
 * @author zhangchen
 * 
 */
public interface HtmlDocumentDAO extends GenericDAO<HtmlDocument, Integer> {

	/**
	 * Query an html document using its url.
	 * 
	 * @param url
	 *            the url
	 * @return the html document identified by the url
	 */
	public HtmlDocument findByUrl(String url);

	/**
	 * Get the max length of all documents.
	 * 
	 * @return an integer representing the max length
	 */
	public int getMaxLength();
}
